document.write("<script src=\"http://gosspublic.alicdn.com/aliyun-oss-sdk-4.4.4.min.js\"></script>");
document.write("<script src='/static/js/jquery.min.js'></script>");
var host = "http://47.98.205.250";

var client = new OSS.Wrapper({
    region: 'oss-cn-hangzhou',//你的oss地址 ，具体位置见下图
    accessKeyId: 'LTAIQb8xLiRdju3q',//你的ak
    accessKeySecret: '1G6AFqff9UyONRy8zroKpu8UZjfnZj',//你的secret
    //stsToken: '<Your securityToken(STS)>',//这里我暂时没用，注销掉
    bucket: 'yifuoss'//你的oss名字
});

function setImgSrc(img) {
    var objectName = img.attr("objectName");
    var url = client.signatureUrl(objectName);
    img.attr("src",url);
}

function getImgUrl(client, img) {
    var objectName = img.attr("id");
    var url = client.signatureUrl(objectName);
    return url;
}

function getUrl(objectName) {
    return client.signatureUrl(objectName);
}
